
#define _CRT_SECURE_NO_WARNINGS
#include"list.hpp"
#include<vector>


void test01()
{
	mylist:: list<int> l = { 1,2,3,4,5,6,7,8 };

	mylist::list<int>::iterator it = l.begin();

	while (it != l.end())
	{
		cout << *it << endl;
		it++;
	}
}


struct pos
{
	int x = 1;
	int y = 1;
};

void test02()
{
	mylist::list<pos> l = { {1,2},{3,4} };

	mylist::list<pos>::reverse_iterator it = l.rbegin();
	while (it != l.rend())
	{
		cout << it->x <<"  "<<it->y<< endl;
		it++;
	}
}


int main()
{
	mylist::list<const int> a = {1,2,3,4};
	const mylist::list<const int> b = {6,7,8};

	mylist::list<const int>::iterator it=a.begin();
	mylist::list<const int>::const_iterator cit = b.begin();
	it = cit;
}